mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:21:46 +01:00
Implemented default data when shifting styles
This commit is contained in:
parent
da30e78815
commit
9815f1490f
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,9 @@ public abstract class AbstractBogeyBlock extends Block implements ITE<StandardBo
|
|||
|
||||
sbte.setBogeyStyle(style);
|
||||
|
||||
CompoundTag defaultData = style.defaultData;
|
||||
sbte.setBogeyData(sbte.getBogeyData().merge(defaultData));
|
||||
|
||||
if (size == getSize()) {
|
||||
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style")
|
||||
.append(": " + style.displayName), true);
|
||||
|
@ -190,6 +193,7 @@ public abstract class AbstractBogeyBlock extends Block implements ITE<StandardBo
|
|||
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style_and_size")
|
||||
.append(": " + style.displayName), true);
|
||||
}
|
||||
|
||||
return InteractionResult.CONSUME;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue