Prevents the sign location of a portal with no sing from being added to lookup blocks and controls

This commit is contained in:
Kristian Knarvik 2021-11-08 15:15:58 +01:00
parent 1efd89cdb0
commit 901f9c555c

View File

@ -271,8 +271,10 @@ public class PortalRegistry {
lookupBlocks.put(block, portal);
}
//Register the sign and button to the lookup lists
lookupBlocks.put(portal.getSignLocation(), portal);
lookupControls.put(portal.getSignLocation(), portal);
if (!portal.getOptions().hasNoSign()) {
lookupBlocks.put(portal.getSignLocation(), portal);
lookupControls.put(portal.getSignLocation(), portal);
}
BlockLocation button = portal.getStructure().getButton();
if (button != null) {