mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
fix exception on !
tag entries
This commit is contained in:
parent
f9c6da104b
commit
88248508cc
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ public class CustomBlock {
|
||||||
// if there is a math for the NOT(!) tag, return false
|
// if there is a math for the NOT(!) tag, return false
|
||||||
if (tag.startsWith("!") && blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.of(tag.substring(2))))) return false;
|
if (tag.startsWith("!") && blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.of(tag.substring(2))))) return false;
|
||||||
// if there is a match, return true
|
// if there is a match, return true
|
||||||
if (blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.of(tag.substring(1))))) tagCheck = true;
|
if (blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.tryParse(tag.substring(1))))) tagCheck = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// not returning true in the loop because there might be a (!) not tag that the block might fall into, after the block was already in another tag
|
// not returning true in the loop because there might be a (!) not tag that the block might fall into, after the block was already in another tag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue