First pass on 1.17.1 update. 13 errors left

This commit is contained in:
drcrazy 2021-07-20 03:38:43 +03:00
parent 3edf36e0ef
commit 08a2cdb081
24 changed files with 69 additions and 67 deletions

View file

@ -205,8 +205,9 @@ public class TechRebornClient implements ClientModInitializer {
FrequencyTransmitterItem.class,
new Identifier("techreborn:coords"),
(item, stack, world, entity, seed) -> {
if (!stack.isEmpty() && stack.hasTag() && stack.getTag() != null && stack.getTag().contains("x")
&& stack.getTag().contains("y") && stack.getTag().contains("z") && stack.getTag().contains("dim")) {
if (!stack.isEmpty() && stack.hasNbt() && stack.getOrCreateNbt().contains("x")
&& stack.getOrCreateNbt().contains("y") && stack.getOrCreateNbt().contains("z")
&& stack.getOrCreateNbt().contains("dim")) {
return 1.0F;
}
return 0.0F;