mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Implemented default data when shifting styles
This commit is contained in:
parent
da30e78815
commit
9815f1490f
@ -177,6 +177,9 @@ public abstract class AbstractBogeyBlock extends Block implements ITE<StandardBo
|
|||||||
|
|
||||||
sbte.setBogeyStyle(style);
|
sbte.setBogeyStyle(style);
|
||||||
|
|
||||||
|
CompoundTag defaultData = style.defaultData;
|
||||||
|
sbte.setBogeyData(sbte.getBogeyData().merge(defaultData));
|
||||||
|
|
||||||
if (size == getSize()) {
|
if (size == getSize()) {
|
||||||
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style")
|
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style")
|
||||||
.append(": " + style.displayName), true);
|
.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")
|
player.displayClientMessage(Lang.translateDirect("create.bogey.style.updated_style_and_size")
|
||||||
.append(": " + style.displayName), true);
|
.append(": " + style.displayName), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return InteractionResult.CONSUME;
|
return InteractionResult.CONSUME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user