Daomephsta / LootTweaker

A CraftTweaker addon that adds the ability to tweak loot tables
MIT License
17 stars 2 forks source link

Freeze when changing certain loottables #29

Closed Thyriel closed 7 years ago

Thyriel commented 7 years ago

Please fill out all applicable sections in the template below:

Description: When i edit the loottables of some entities the game freezes at "World loading" screen. The script itself seems to work as it's working for a lot mobs and only some don't work.

Steps to reproduce:

Script Used https://pastebin.com/BxAJRxqP

Version Info(Exact versions only):
LootTweaker-1.12-0.0.6.4

CraftTweaker2-1.12-4.0.8

Forge:14.23.0.2512

Minecraft: 1.12.2

Logs and other useful information: nothing unusual in minecraft log / crafttweaker log (tables get added for the entities causing the freeze, no error)

Daomephsta commented 7 years ago

Post both logs anyway please. I need as much data as I can get about what's happened in a case like this.

Thyriel commented 7 years ago

CT log: https://pastebin.com/72ZbvsBa fml-client-latest (while game is in freezing state): https://pastebin.com/huapNMni latest.log: https://pastebin.com/0x0MZGTb crash-server.log: https://pastebin.com/SmKJa8yh (sorry hadn't thought that there can be a crashlog when no crash happens)

You where right, there is a java exception in latest.log caused by LootTweaker (strange that the game doesn't crash from this ?) that isn't there when i remove the 5 mobs from the script.

Daomephsta commented 7 years ago

I think I know what's wrong here. It should be a simple fix.

Daomephsta commented 7 years ago

This may be more difficult than I thought

Daomephsta commented 7 years ago

The tables that cause the issue are tables with no pools. I forgot to check if that pool exists when getting an existing pool.