Prevent teleporting dead entities (#2803)

This commit is contained in:
Shane Freeder
2020-03-03 05:28:35 +00:00
parent 8087b810b4
commit 9079e78a20
2 changed files with 24 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ index fe2ec79dd..8460aa4f5 100644
@@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull;
public class BlockMultiPlaceEvent extends BlockPlaceEvent {
private final List<BlockState> states;
+ @Deprecated // Paper
public BlockMultiPlaceEvent(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) {
- super(states.get(0).getBlock(), states.get(0), clicked, itemInHand, thePlayer, canBuild);
@@ -25,6 +25,6 @@ index fe2ec79dd..8460aa4f5 100644
this.states = ImmutableList.copyOf(states);
+ //Paper end
}
/**
--