Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Desyncs, dupes, crashes, you name it. This should address most of them hopefully. Closes #137, #143, #145, #146
- Loading branch information
Showing
6 changed files
with
112 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package squeek.spiceoflife.inventory; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.inventory.IInventory; | ||
import net.minecraft.inventory.Slot; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public class SlotLocked extends Slot | ||
{ | ||
public SlotLocked(IInventory inventory, int id, int x, int y) | ||
{ | ||
super(inventory, id, x, y); | ||
} | ||
|
||
@Override | ||
public boolean isItemValid(ItemStack itemStack) | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public ItemStack onTake(EntityPlayer thePlayer, ItemStack stack) | ||
{ | ||
return ItemStack.EMPTY; | ||
} | ||
|
||
@Override | ||
public ItemStack decrStackSize(int amount) | ||
{ | ||
return ItemStack.EMPTY; | ||
} | ||
} |
Oops, something went wrong.