Compare commits
No commits in common. "d0ee1fb0e37e4307b21191a8ac9a239305b84cd7" and "13c9e93d312d42a68b65aa47d7910cefb4b6f307" have entirely different histories.
d0ee1fb0e3
...
13c9e93d31
@ -34,10 +34,6 @@ class CombinedContainer(containers: Stream<Pair<Container, Iterable<Int>>>) : IM
|
|||||||
override val container: Container
|
override val container: Container
|
||||||
get() = this@CombinedContainer
|
get() = this@CombinedContainer
|
||||||
|
|
||||||
override fun setChanged() {
|
|
||||||
outer.setChanged()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun component1(): Int {
|
override fun component1(): Int {
|
||||||
return super.component1()
|
return super.component1()
|
||||||
}
|
}
|
||||||
|
@ -51,14 +51,6 @@ inline fun <S : Slot> makeSlots(containers: List<Container>?, size: Int, initial
|
|||||||
open class MatterySlot(container: Container, index: Int, x: Int = 0, y: Int = 0) : Slot(container, index, x, y) {
|
open class MatterySlot(container: Container, index: Int, x: Int = 0, y: Int = 0) : Slot(container, index, x, y) {
|
||||||
var ignoreSpectators = true
|
var ignoreSpectators = true
|
||||||
|
|
||||||
override fun setChanged() {
|
|
||||||
if (container is IMatteryContainer) {
|
|
||||||
(container as IMatteryContainer).setChanged(index)
|
|
||||||
} else {
|
|
||||||
super.setChanged()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun mayPickup(player: Player): Boolean {
|
override fun mayPickup(player: Player): Boolean {
|
||||||
return super.mayPickup(player) && (!ignoreSpectators || !player.isSpectator)
|
return super.mayPickup(player) && (!ignoreSpectators || !player.isSpectator)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user