Fixes crash with player detectors, closes #973
(cherry picked from commit 58ff71b)
This commit is contained in:
parent
a1c438e752
commit
2a543b4170
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ public class BlockPlayerDetector extends BlockMachineBase implements ITexturedBl
|
||||||
newType = "all";
|
newType = "all";
|
||||||
}
|
}
|
||||||
world.setBlockState(pos, state.withProperty(TYPE, newType));
|
world.setBlockState(pos, state.withProperty(TYPE, newType));
|
||||||
if (!world.isRemote) {
|
if (world.isRemote) {
|
||||||
ChatUtils.sendNoSpamMessages(MessageIDs.playerDetectorID, new TextComponentString(
|
ChatUtils.sendNoSpamMessages(MessageIDs.playerDetectorID, new TextComponentString(
|
||||||
TextFormatting.GRAY + I18n.translateToLocal("techreborn.message.detects") + " " + color
|
TextFormatting.GRAY + I18n.translateToLocal("techreborn.message.detects") + " " + color
|
||||||
+ StringUtils.toFirstCapital(newType)));
|
+ StringUtils.toFirstCapital(newType)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue