crash fix
This commit is contained in:
@@ -131,9 +131,12 @@ public class InteractionScreen extends Screen {
|
||||
ItemStack[] stack = new ItemStack[27];
|
||||
final int[] index = {0};
|
||||
if (e instanceof EndermanEntity) {
|
||||
try {
|
||||
stack[index[0]] = ((EndermanEntity)e).getCarriedBlock().getBlock().asItem().getDefaultStack();
|
||||
index[0]++;
|
||||
}
|
||||
catch (NullPointerException ex) {}
|
||||
}
|
||||
if (Saddleable.class.isInstance(e)) {
|
||||
if (((Saddleable)e).isSaddled()){
|
||||
stack[index[0]] = Items.SADDLE.getDefaultStack();
|
||||
|
||||
Reference in New Issue
Block a user