mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Displayed new style name when changing betweeen them
This commit is contained in:
parent
5634670b27
commit
112306d5d4
@ -178,7 +178,8 @@ public abstract class AbstractBogeyBlock extends Block implements ITE<StandardBo
|
|||||||
sbte.setBogeyStyle(style);
|
sbte.setBogeyStyle(style);
|
||||||
|
|
||||||
if (size == getSize()) {
|
if (size == getSize()) {
|
||||||
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style"), true);
|
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style")
|
||||||
|
.append(": " + style.displayName), true);
|
||||||
} else {
|
} else {
|
||||||
CompoundTag oldData = sbte.getBogeyData();
|
CompoundTag oldData = sbte.getBogeyData();
|
||||||
level.setBlock(pos, this.getStateOfSize(sbte, size), 3);
|
level.setBlock(pos, this.getStateOfSize(sbte, size), 3);
|
||||||
@ -186,7 +187,8 @@ public abstract class AbstractBogeyBlock extends Block implements ITE<StandardBo
|
|||||||
if (!(newBlockEntity instanceof StandardBogeyTileEntity newTileEntity))
|
if (!(newBlockEntity instanceof StandardBogeyTileEntity newTileEntity))
|
||||||
return InteractionResult.FAIL;
|
return InteractionResult.FAIL;
|
||||||
newTileEntity.setBogeyData(oldData);
|
newTileEntity.setBogeyData(oldData);
|
||||||
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style_and_size"), true);
|
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style_and_size")
|
||||||
|
.append(": " + style.displayName), true);
|
||||||
}
|
}
|
||||||
return InteractionResult.CONSUME;
|
return InteractionResult.CONSUME;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user