mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Merge pull request #810 from ganymedes01/rainmaker-fix
Fix rainmaker crash
This commit is contained in:
commit
c42ba345da
1 file changed
+1
-1
@@ -139,7 +139,7 @@ public class MillRainmaker extends Mill {
|
||||
public void setInventorySlotContents(int slotIndex, ItemStack itemStack) {
|
||||
if (slotIndex == SLOT_SUBSTRATE) {
|
||||
RainSubstrate substrate = FuelManager.rainSubstrate.get(itemStack);
|
||||
if (substrate.item.isItemEqual(itemStack)) {
|
||||
if (substrate != null && substrate.item.isItemEqual(itemStack)) {
|
||||
tile.addCharge(substrate);
|
||||
tile.sendNetworkUpdate();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user