graywolf336 / CasinoSlots

Animated, customizable, block-based slot machines, including audio, inside of Minecraft!
http://dev.bukkit.org/server-mods/casino-slots/
GNU General Public License v2.0
23 stars 22 forks source link

Whenever there is three across and that block isn't listed as a reward #5

Closed graywolf336 closed 12 years ago

graywolf336 commented 12 years ago

2012-03-27 21:38:16 [WARNING] Task of 'CasinoSlots' generated an exception java.lang.NullPointerException at com.craftyn.casinoslots.slot.RewardData.send(RewardData.java:25) at com.craftyn.casinoslots.slot.game.ResultsTask.run(ResultsTask.java:41) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:520) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)

Put id 124 and minecraft changes it to 123 and since 123 isn't listed, it throws an error due to not being in the rewards any where and yet it gets three across. Need to fix as it's been a bug for a long time.

hiown commented 12 years ago

This bug happens very often and is a pain in the ass since the only way I know how to fix it is to delete the slot and then replace it, which could also severly impact users with managed slot machines.

Edit:after more testing im almost 100% sure that it is obsidian as its not only diagonal its also horizontal from my tester doing it and me having to fix it.

graywolf336 commented 12 years ago

@hiown It's not just obsidian, it's any block that doesn't have a message for being three in a row.