mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Fix a crash with energy phantomfaces and tesla
This commit is contained in:
parent
442d0f6a4e
commit
8226479ce8
2 changed files with 7 additions and 3 deletions
|
@ -332,12 +332,15 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{
|
|||
}
|
||||
else if(ActuallyAdditions.teslaLoaded){
|
||||
if(capability == TeslaUtil.teslaConsumer || capability == TeslaUtil.teslaProducer || capability == TeslaUtil.teslaHolder){
|
||||
IEnergyStorage storage = this.getEnergyStorage(facing);
|
||||
if(storage != null){
|
||||
if(this.teslaWrapper == null){
|
||||
this.teslaWrapper = new TeslaForgeUnitsWrapper(this.getEnergyStorage(facing));
|
||||
this.teslaWrapper = new TeslaForgeUnitsWrapper(storage);
|
||||
}
|
||||
return (T)this.teslaWrapper;
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.getCapability(capability, facing);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# 1.11-r83
|
||||
* Fix an exception during loading some tileentities causing them to lose their data
|
||||
* Fix a crash with Energy Phantomfaces and Tesla
|
||||
* Improve performance of Patreon display code
|
||||
|
||||
# 1.11-r82
|
||||
|
|
Loading…
Reference in a new issue