Some minor cleanup
* Hid Dimensional Portal from JEI and Creative * Fixed stacktrace spam when invalid portal was stepped into * Fixed tank rendering no model at all * Fixed NBT saving for Dimensional Portal
This commit is contained in:
parent
5c5cda1917
commit
45710ebb8f
5 changed files with 11 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
|||
package WayofTime.bloodmagic.tile;
|
||||
|
||||
import WayofTime.bloodmagic.ritual.RitualPortal;
|
||||
import com.google.common.base.Strings;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.BlockPos;
|
||||
|
||||
public class TileDimensionalPortal extends TileEntity
|
||||
{
|
||||
public String portalID;
|
||||
public String portalID = "";
|
||||
public int masterStoneX;
|
||||
public int masterStoneY;
|
||||
public int masterStoneZ;
|
||||
|
@ -32,7 +33,7 @@ public class TileDimensionalPortal extends TileEntity
|
|||
{
|
||||
super.writeToNBT(tagCompound);
|
||||
|
||||
tagCompound.setString(RitualPortal.PORTAL_ID_TAG, portalID);
|
||||
tagCompound.setString(RitualPortal.PORTAL_ID_TAG, Strings.isNullOrEmpty(portalID) ? "" : portalID);
|
||||
|
||||
tagCompound.setInteger("masterStoneX", masterStoneX);
|
||||
tagCompound.setInteger("masterStoneY", masterStoneY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue