mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Fix ItemEntity physics
This commit is contained in:
parent
f41733e338
commit
d1babd25dc
@ -43,6 +43,7 @@ public class ItemEntity extends Entity {
|
|||||||
public ItemEntity(@NotNull ItemStack itemStack, @NotNull Position spawnPosition) {
|
public ItemEntity(@NotNull ItemStack itemStack, @NotNull Position spawnPosition) {
|
||||||
super(EntityType.ITEM, spawnPosition);
|
super(EntityType.ITEM, spawnPosition);
|
||||||
setItemStack(itemStack);
|
setItemStack(itemStack);
|
||||||
|
setGravity(0.02f, 0.04f, 1.96f);
|
||||||
setBoundingBox(0.25f, 0.25f, 0.25f);
|
setBoundingBox(0.25f, 0.25f, 0.25f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user