мда
This commit is contained in:
parent
dc2661db9a
commit
8f76e1455b
@ -219,7 +219,6 @@ abstract class MatteryBlockEntity(p_155228_: BlockEntityType<*>, p_155229_: Bloc
|
||||
if (value !== field) {
|
||||
field = value
|
||||
|
||||
if (value.isPresent)
|
||||
for (tracker in listeners)
|
||||
tracker.accept(value)
|
||||
}
|
||||
@ -229,8 +228,6 @@ abstract class MatteryBlockEntity(p_155228_: BlockEntityType<*>, p_155229_: Bloc
|
||||
|
||||
fun addListener(listener: Consumer<LazyOptional<T>>) {
|
||||
listeners.add(listener)
|
||||
|
||||
if (value.isPresent)
|
||||
listener.accept(value)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user