Fix potential NPE.

This commit is contained in:
Florian Nücke 2014-07-17 17:07:53 +02:00
parent 78c6d01051
commit 81bdce12be

View File

@ -261,7 +261,7 @@ class Hologram(val isClient: Boolean, var tier: Int) extends traits.Environment
override def updateEntity() {
super.updateEntity()
if (isServer) {
if (isServer && node != null) {
if (dirty) {
cooldown -= 1
if (cooldown <= 0) this.synchronized {