mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-18 15:07:38 +01:00
- fix VEHICLE_COLLISION_BLOCK event firing
This commit is contained in:
parent
df2c0e2308
commit
5f20de34a9
@ -477,7 +477,7 @@ public abstract class Entity {
|
|||||||
int j1;
|
int j1;
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
if ((this.bg) && (getBukkitEntity() instanceof Vehicle)) {
|
if ((this.aV) && (getBukkitEntity() instanceof Vehicle)) {
|
||||||
Vehicle vehicle = (Vehicle) getBukkitEntity();
|
Vehicle vehicle = (Vehicle) getBukkitEntity();
|
||||||
org.bukkit.World wrld = ((WorldServer) world).getWorld();
|
org.bukkit.World wrld = ((WorldServer) world).getWorld();
|
||||||
org.bukkit.block.Block block = wrld.getBlockAt(MathHelper.b(locX), MathHelper.b(locY - 0.20000000298023224D - (double) this.height), MathHelper.b(locZ));
|
org.bukkit.block.Block block = wrld.getBlockAt(MathHelper.b(locX), MathHelper.b(locY - 0.20000000298023224D - (double) this.height), MathHelper.b(locZ));
|
||||||
|
Loading…
Reference in New Issue
Block a user