Skip to content

Commit

Permalink
actually fix gate owner name tag issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmage45 committed Oct 15, 2014
1 parent 5eb5a31 commit 2b2d276
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ protected void writeEntityToNBT(NBTTagCompound tag)
tag.setTag("pos1", pos1.writeToNBT(new NBTTagCompound()));
tag.setTag("pos2", pos2.writeToNBT(new NBTTagCompound()));
tag.setInteger("type", this.gateType.getGlobalID());
if(!"".equals(ownerName))
if(ownerName!=null && !("".equals(ownerName)))
{
tag.setString("owner", ownerName);
}
Expand Down

0 comments on commit 2b2d276

Please sign in to comment.