Fix editing holo sign does not mark chunk dirty
This commit is contained in:
parent
117e59e028
commit
b1c978a3b0
@ -15,7 +15,10 @@ import ru.dbotthepony.mc.otm.registry.MBlockEntities
|
||||
import ru.dbotthepony.mc.otm.registry.MBlocks
|
||||
|
||||
class HoloSignBlockEntity(blockPos: BlockPos, blockState: BlockState) : SynchronizedBlockEntity(MBlockEntities.HOLO_SIGN, blockPos, blockState), MenuProvider {
|
||||
var text by synchronizer.string("АМОГУС\nБОНУС\nИИСУС\nПЛЮС", name = "text")
|
||||
var text by synchronizer.string("", name = "text", setter = { value, access, remote ->
|
||||
setChanged()
|
||||
access.write(value)
|
||||
})
|
||||
|
||||
override fun createMenu(p_39954_: Int, p_39955_: Inventory, p_39956_: Player): AbstractContainerMenu {
|
||||
return HoloSignMenu(p_39954_, p_39955_, this)
|
||||
|
Loading…
Reference in New Issue
Block a user