Skip to content

Commit 407b206

Browse files
authored
Fix incorrect acceleraton for potion and experience bottle (#25)
1 parent ceb729a commit 407b206

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DataGenerator/src/main/java/net/minestom/generators/EntityGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ private double findAcceleration(EntityType<?> entityType) {
130130

131131
if (entityType == EntityType.EGG) return 0.03;
132132
if (entityType == EntityType.FISHING_BOBBER) return 0.03;
133-
if (entityType == EntityType.EXPERIENCE_BOTTLE) return 0.03;
134133
if (entityType == EntityType.ENDER_PEARL) return 0.03;
135-
if (entityType == EntityType.POTION) return 0.03;
136134
if (entityType == EntityType.SNOWBALL) return 0.03;
137135

138136
if (entityType == EntityType.BOAT) return 0.04;
@@ -144,8 +142,11 @@ private double findAcceleration(EntityType<?> entityType) {
144142
if (entityType == EntityType.ARROW) return 0.05;
145143
if (entityType == EntityType.SPECTRAL_ARROW) return 0.05;
146144
if (entityType == EntityType.TRIDENT) return 0.05;
145+
if (entityType == EntityType.POTION) return 0.05;
147146

148147
if (entityType == EntityType.LLAMA_SPIT) return 0.06;
148+
149+
if (entityType == EntityType.EXPERIENCE_BOTTLE) return 0.07;
149150

150151
if (entityType == EntityType.FIREBALL) return 0.1;
151152
if (entityType == EntityType.WITHER_SKULL) return 0.1;

0 commit comments

Comments
 (0)