Skip to content

Commit

Permalink
Fixed Lightningrod resulting in a crash on very specific setups, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSunrize committed Nov 2, 2018
1 parent aa46aa9 commit 60d675d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -13,6 +13,7 @@
- Fixed Item Router voiding items when used to extract (BluSunrize)
- Fixed an annoying consolespam with the Cartographer trades (BluSunrize)
- Fixed various GUIs still using "RF" instead of "IF" (BluSunrize)
- Fixed Lightningrod resulting in a crash on very specific setups (BluSunrize)
- Translations Added/Updated: ja_jp (karakufire), es_es(Dorzar & rogama25)

#####Version 0.12-86 - BUILT
Expand Down
Expand Up @@ -71,7 +71,7 @@ public void update()
fenceNet = null;
if(fenceNet==null)
fenceNet = this.getFenceNet();
if(fenceNet!=null&&world.getTotalWorldTime()%128==((getPos().getX()^getPos().getZ())&127)&&(world.isThundering()||(world.isRaining()&&Utils.RAND.nextInt(10)==0)))
if(fenceNet.size()>0&&world.getTotalWorldTime()%128==((getPos().getX()^getPos().getZ())&127)&&(world.isThundering()||(world.isRaining()&&Utils.RAND.nextInt(10)==0)))
{
int i = this.height+this.fenceNet.size();
if(Utils.RAND.nextInt(4096*world.getHeight()) < i*(getPos().getY()+i))
Expand Down

0 comments on commit 60d675d

Please sign in to comment.