From a349e1a2774d2fd4773325947ca048d6e13d5e12 Mon Sep 17 00:00:00 2001 From: thatsIch Date: Mon, 18 May 2015 08:59:27 +0200 Subject: [PATCH] Usage of CONSTANTS --- .../java/appeng/tile/networking/TileController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/appeng/tile/networking/TileController.java b/src/main/java/appeng/tile/networking/TileController.java index 21729c0d7..1481d0b4f 100644 --- a/src/main/java/appeng/tile/networking/TileController.java +++ b/src/main/java/appeng/tile/networking/TileController.java @@ -1,6 +1,6 @@ /* * This file is part of Applied Energistics 2. - * Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved. + * Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved. * * Applied Energistics 2 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -42,10 +42,10 @@ import appeng.tile.inventory.InvOperation; public class TileController extends AENetworkPowerTile { + private static final IInventory NULL_INVENTORY = new AppEngInternalInventory( null, 0 ); + private static final int[] ACCESSIBLE_SLOTS_BY_SIDE = new int[] {}; - static final AppEngInternalInventory inv = new AppEngInternalInventory( null, 0 ); - final int[] sides = new int[] {}; - boolean isValid = false; + private boolean isValid = false; public TileController() { @@ -187,7 +187,7 @@ public class TileController extends AENetworkPowerTile @Override public IInventory getInternalInventory() { - return inv; + return NULL_INVENTORY; } @Override @@ -199,6 +199,6 @@ public class TileController extends AENetworkPowerTile @Override public int[] getAccessibleSlotsBySide( ForgeDirection side ) { - return this.sides; + return this.ACCESSIBLE_SLOTS_BY_SIDE; } }