Fixed the adapter. Closes #1188.

This commit is contained in:
Florian Nücke 2015-05-30 12:08:02 +02:00
parent 605d642787
commit 4e660edc55

View File

@ -47,7 +47,7 @@ class Adapter extends traits.Environment with traits.ComponentInventory with Ana
def neighborChanged(d: EnumFacing) {
if (node != null && node.network != null) {
val blockPos = getPos.offset(d)
world.getTileEntity(getPos) match {
world.getTileEntity(blockPos) match {
case env: traits.Environment =>
// Don't provide adaption for our stuffs. This is mostly to avoid
// cables and other non-functional stuff popping up in the adapter