Prevents the sign location of a portal with no sing from being added to lookup blocks and controls
This commit is contained in:
parent
1efd89cdb0
commit
901f9c555c
@ -271,8 +271,10 @@ public class PortalRegistry {
|
|||||||
lookupBlocks.put(block, portal);
|
lookupBlocks.put(block, portal);
|
||||||
}
|
}
|
||||||
//Register the sign and button to the lookup lists
|
//Register the sign and button to the lookup lists
|
||||||
|
if (!portal.getOptions().hasNoSign()) {
|
||||||
lookupBlocks.put(portal.getSignLocation(), portal);
|
lookupBlocks.put(portal.getSignLocation(), portal);
|
||||||
lookupControls.put(portal.getSignLocation(), portal);
|
lookupControls.put(portal.getSignLocation(), portal);
|
||||||
|
}
|
||||||
|
|
||||||
BlockLocation button = portal.getStructure().getButton();
|
BlockLocation button = portal.getStructure().getButton();
|
||||||
if (button != null) {
|
if (button != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user