mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Fix #721 Crash when reusing the Habitat Locator
This commit is contained in:
1 parent
763df470a1
commit
fb966143f9
12 files changed
+332
-344
No files matched your search
@@ -102,8 +102,8 @@ public class ItemImprinter extends ItemForestry {
|
||||
secondaryIndex = index;
|
||||
}
|
||||
|
||||
private void tryImprint() {
|
||||
|
||||
@Override
|
||||
public void onSlotClick(EntityPlayer player) {
|
||||
ItemStack specimen = getStackInSlot(specimenSlot);
|
||||
if (specimen == null) {
|
||||
return;
|
||||
@@ -132,11 +132,6 @@ public class ItemImprinter extends ItemForestry {
|
||||
setInventorySlotContents(specimenSlot, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markDirty() {
|
||||
tryImprint();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Imprinter";
|
||||
|
||||
Reference in new issue
Block a user