mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 19:59:58 +00:00
Merge pull request #2397 from MatthiasMann/lights2
allow WirelessChargedLocation to be created while the TileEntity is not ...
This commit is contained in:
commit
54af4e99f3
1 file changed
+5
-1
@@ -19,7 +19,11 @@ public class WirelessChargedLocation {
|
||||
public WirelessChargedLocation(TileEntity te) {
|
||||
this.te = te;
|
||||
this.chargers = new ArrayList<IWirelessCharger>();
|
||||
updateChargers();
|
||||
/* Set lastChangeCount to one less than the current change count so that
|
||||
the charger list is updated on first use (unless ~4B changes happen in between).
|
||||
Do this instead directly updating so that WirelessChargedLocation can be used
|
||||
while the TileEntity is still in construction (or loading). */
|
||||
this.lastChangeCount = WirelessChargerController.instance.getChangeCount() - 1;
|
||||
}
|
||||
|
||||
private void updateChargers() {
|
||||
|
||||
Reference in new issue
Block a user