fix falling not drop item
This commit is contained in:
parent
ed4b7c414b
commit
8292131670
1 changed files with 2 additions and 2 deletions
|
|
@ -116,8 +116,8 @@ public class FoliaFlow extends JavaPlugin implements Listener {
|
|||
spawnLoc.setZ(spawnLoc.getZ()+0.5);
|
||||
|
||||
FallingBlock dummy = loc.getWorld().spawnFallingBlock(spawnLoc, ((FallingBlock) entity).getBlockData());
|
||||
dummy.setDropItem(false);
|
||||
dummy.setHurtEntities(false);
|
||||
dummy.setDropItem(true);
|
||||
dummy.setHurtEntities(true);
|
||||
dummy.setGravity(true);
|
||||
Vector dummyVel = vel.clone();
|
||||
dummyVel.setY(-dummyVel.getY());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue