fix faulty cast
@@ -236,11 +236,14 @@ public class KeypadChestTileEntity extends ChestTileEntity implements IPasswordP
@Override
public void onOptionChanged(Option<?> option)
+ {
+ if(option instanceof BooleanOption)
{
KeypadChestTileEntity offsetTe = findOther();
if(offsetTe != null)
- offsetTe.setSendsMessages((boolean)option.get());
+ offsetTe.setSendsMessages(((BooleanOption)option).get());
+ }
}
public void addOrRemoveModuleFromAttached(ItemStack module, boolean remove)
