mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix detection of missing or invalid tile entities for End portals and gateways
This commit is contained in:
1 parent
2a2d6d6295
commit
f7d14f184d
1 file changed
+2
-2
@@ -160,7 +160,7 @@
|
||||
+ result = fixTileEntity(pos, type, result);
|
||||
+ }
|
||||
+ } else if (type == Blocks.END_PORTAL) {
|
||||
+ if (!(result instanceof TileEntityEndGateway)) {
|
||||
+ if (!(result instanceof TileEntityEnderPortal)) {
|
||||
+ result = fixTileEntity(pos, type, result);
|
||||
+ }
|
||||
+ } else if (type == Blocks.SKULL) {
|
||||
@@ -187,7 +187,7 @@
|
||||
+ if (!(result instanceof TileEntityStructure)) {
|
||||
+ result = fixTileEntity(pos, type, result);
|
||||
+ }
|
||||
+ } else if (type == Blocks.END_PORTAL) {
|
||||
+ } else if (type == Blocks.END_GATEWAY) {
|
||||
+ if (!(result instanceof TileEntityEndGateway)) {
|
||||
+ result = fixTileEntity(pos, type, result);
|
||||
+ }
|
||||
|
||||
Reference in new issue
Block a user