blockMaterial
This commit is contained in:
parent
0fb1194015
commit
1b6f6dce4f
1 changed files with 4 additions and 2 deletions
|
|
@ -55,7 +55,9 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
|||
|
||||
//spawn new falling block in the end dimension and have same properties entity type and material same form entity that detect near end portal
|
||||
|
||||
FallingBlock dummy = nesssistw.spawnFallingBlock(location, ((FallingBlock) entity).getBlockData());
|
||||
Material blockMaterial = ((FallingBlock) entity).getBlockData().getMaterial();
|
||||
FallingBlock dummy = nesssistw.spawnFallingBlock(location, blockMaterial.createBlockData());
|
||||
|
||||
Vector dummyVel = vel.clone();
|
||||
dummy.setVelocity(dummyVel);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue