bdew-minecraft / pressure

Pressure Pipes mod
18 stars 10 forks source link

[Question] FakeTank #63

Closed KidsDontPlay closed 8 years ago

KidsDontPlay commented 8 years ago

hi

override def getTankInfo(from: EnumFacing) = if (isValidDirectionForFakeTank(from)) Array(new FluidTankInfo(null, Int.MaxValue)) else null

why do you return null instead of an empty array?

bdew commented 8 years ago

No specific reason, AFAIR. Can change it if it causes problems, but there are other mods that do it - so you should expect getting a null from there and treating it correctly.