Fix flywheel battery not marking chunk dirty when energy level changes
This commit is contained in:
parent
d2f119a112
commit
38923d7978
@ -37,6 +37,13 @@ class FlywheelBatteryBlockEntity(blockPos: BlockPos, blockState: BlockState) : M
|
|||||||
private var multiblock: ShapedMultiblock? = null
|
private var multiblock: ShapedMultiblock? = null
|
||||||
private var lastHeight = -1
|
private var lastHeight = -1
|
||||||
var batteryLevel = Decimal.ZERO
|
var batteryLevel = Decimal.ZERO
|
||||||
|
set(value) {
|
||||||
|
if (field != value) {
|
||||||
|
field = value
|
||||||
|
markDirtyFast()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private var cachedChargeEfficiency = Decimal.ONE
|
private var cachedChargeEfficiency = Decimal.ONE
|
||||||
|
|
||||||
val formed: Boolean
|
val formed: Boolean
|
||||||
|
Loading…
Reference in New Issue
Block a user