mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Fixed the adapter. Closes #1188.
This commit is contained in:
parent
605d642787
commit
4e660edc55
@ -47,7 +47,7 @@ class Adapter extends traits.Environment with traits.ComponentInventory with Ana
|
|||||||
def neighborChanged(d: EnumFacing) {
|
def neighborChanged(d: EnumFacing) {
|
||||||
if (node != null && node.network != null) {
|
if (node != null && node.network != null) {
|
||||||
val blockPos = getPos.offset(d)
|
val blockPos = getPos.offset(d)
|
||||||
world.getTileEntity(getPos) match {
|
world.getTileEntity(blockPos) match {
|
||||||
case env: traits.Environment =>
|
case env: traits.Environment =>
|
||||||
// Don't provide adaption for our stuffs. This is mostly to avoid
|
// Don't provide adaption for our stuffs. This is mostly to avoid
|
||||||
// cables and other non-functional stuff popping up in the adapter
|
// cables and other non-functional stuff popping up in the adapter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user