mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-12 09:51:12 +01:00
SPIGOT-5939: EntityPortalEnterEvent not fired for end portal if end disabled
This commit is contained in:
parent
833047174f
commit
e58a088765
1 changed files with 6 additions and 2 deletions
|
@ -11,8 +11,12 @@
|
|||
public class BlockEnderPortal extends BlockTileEntity {
|
||||
|
||||
protected static final VoxelShape a = Block.a(0.0D, 0.0D, 0.0D, 16.0D, 12.0D, 16.0D);
|
||||
@@ -28,6 +33,15 @@
|
||||
return;
|
||||
@@ -25,9 +30,18 @@
|
||||
WorldServer worldserver = ((WorldServer) world).getMinecraftServer().getWorldServer(resourcekey);
|
||||
|
||||
if (worldserver == null) {
|
||||
- return;
|
||||
+ // return; // CraftBukkit - always fire event in case plugins wish to change it
|
||||
}
|
||||
|
||||
+ // CraftBukkit start - Entity in portal
|
||||
|
|
Loading…
Reference in a new issue