This pull request resolves several of the warnings that appear when opening this project in my editor (Visual Studio Code). It does not make any functionality changes to the mod.
In general, these warnings can be split into three categories:
Deprecated fields have been replaced with equivalent un-deprecated fields. Specifically, NbtType has been superseded by NbtElement.
Unused imports have been removed.
In order to resolve warnings that appear as Resource leak: '<unassigned Closeable value>' is never closed, several changes have been made with the following general form:
if (!entity.getWorld().isClient) {
// ...
}
...has been replaced with:
World world = entity.getWorld();
if (!world.isClient) {
// ...
}
This pull request resolves several of the warnings that appear when opening this project in my editor (Visual Studio Code). It does not make any functionality changes to the mod.
In general, these warnings can be split into three categories:
NbtType
has been superseded byNbtElement
.In order to resolve warnings that appear as
Resource leak: '<unassigned Closeable value>' is never closed
, several changes have been made with the following general form:...has been replaced with:
CC: @emilyploszaj