rwtema / Extra-Utilities-2-Source

Sourcecode for Extra Utilities
Other
108 stars 75 forks source link

[1.12, minor] Log spam caused by registering tile entities with the wrong mod ID #239

Open quat1024 opened 5 years ago

quat1024 commented 5 years ago

Recentish versions of Forge deprecate GameRegistry.registerTileEntity(Class, String ) in favor of GameRegistry.registerTileEntity(Class, ResourceLocation ). This change brought with it a namespace check that logs a warning if the active mod ID is different from the tile's resourcelocation's mod ID. See GameRegistry line 233.

Since Extra Utilities 2 registers all its tile entities with the id XU2 (which gets lowercased to xu2) instead of extrautils2: https://github.com/rwtema/Extra-Utilities-2-Source/blob/ff6b75ebc334ee0f1a2c2d1fd1394f8d7e4da0bb/1.10.2/src/main/java/com/rwtema/extrautils2/backend/entries/BlockEntry.java#L47

Forge prints a whole ton of warnings, like this one:

[01:26:58] [main/WARN] [FML]: Potentially Dangerous alternative prefix `xu2` for name `xutesrtile`, expected `extrautils2`. This could be a intended override, but in most cases indicates a broken mod.

It's harmless, but seriously, there's a lot of tile entities.