Compare commits

...

2 Commits

Author SHA1 Message Date
LordMZTE 613fd90e02
fix: crash when looking at block without item (door)
closes #1
2023-03-15 16:27:12 +01:00
LordMZTE 5384e8ff48
fix: update borked NEI version 2023-03-15 16:26:58 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,7 @@ repositories {
}*/
}
dependencies {
implementation "com.github.GTNewHorizons:NotEnoughItems:2.3.20-GTNH:dev"
implementation "com.github.GTNewHorizons:NotEnoughItems:2.3.39-GTNH:dev"
implementation "com.github.GTNewHorizons:waila:master-SNAPSHOT:dev"
// implementation "mozeintel:ProjectE:1.7.10-PE1.10.1"

View File

@ -44,7 +44,11 @@ public class TransmutationHelper {
if (currentBlock != null) {
meta = currentBlock.damageDropped(meta);
TransmutationHelper.currentBlockStack = new ItemStack(currentBlock, 1, meta);
if (TransmutationHelper.previousBlockStack == null) {
if (TransmutationHelper.currentBlockStack.getItem() == null) {
TransmutationHelper.targetBlockStack = null;
TransmutationHelper.currentBlockStack = null;
TransmutationHelper.previousBlockStack = null;
} else if (TransmutationHelper.previousBlockStack == null) {
TransmutationHelper.previousBlockStack
= TransmutationHelper.currentBlockStack;
TransmutationHelper.targetBlockStack = getNextBlock(