Add call to OnChangedBlock when notifying of updates
import org.terasology.math.ChunkMath;
import org.terasology.math.Region3i;
import org.terasology.math.geom.Vector3i;
+import org.terasology.world.OnChangedBlock;
import org.terasology.world.WorldChangeListener;
import org.terasology.world.WorldComponent;
import org.terasology.world.block.Block;
@@ -266,6 +267,7 @@ private void notifyBlockChanged(Vector3i pos, Block type, Block oldType) {
listener.onBlockChanged(pos, type, oldType);
}
}
+ type.getEntity().send(new OnChangedBlock(pos, type, oldType));
}
private void notifyExtraDataChanged(int index, Vector3i pos, int newData, int oldData) {
