mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-10-07 12:07:38 +02:00
Ops, now it's fixed.
This commit is contained in:
parent
0b47982927
commit
9ba424e749
@ -45,7 +45,7 @@ public class EntityCustomItem extends EntityItem implements CustomItem, BasicEnt
|
||||
public ItemStack getItemStack() {
|
||||
// Dirty method to check if the icon is being picked up
|
||||
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
|
||||
if (stacktrace.length >= 2 && stacktrace[1].getClassName().contains("EntityInsentient")) {
|
||||
if (stacktrace.length > 2 && stacktrace[2].getClassName().contains("EntityInsentient")) {
|
||||
return null; // Try to pickup this, dear entity ignoring the pickupDelay!
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class EntityCustomItem extends EntityItem implements CustomItem, BasicEnt
|
||||
public ItemStack getItemStack() {
|
||||
// Dirty method to check if the icon is being picked up
|
||||
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
|
||||
if (stacktrace.length >= 2 && stacktrace[1].getClassName().contains("EntityInsentient")) {
|
||||
if (stacktrace.length > 2 && stacktrace[2].getClassName().contains("EntityInsentient")) {
|
||||
return null; // Try to pickup this, dear entity ignoring the pickupDelay!
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class EntityCustomItem extends EntityItem implements CustomItem, BasicEnt
|
||||
public ItemStack getItemStack() {
|
||||
// Dirty method to check if the icon is being picked up
|
||||
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
|
||||
if (stacktrace.length >= 2 && stacktrace[1].getClassName().contains("EntityInsentient")) {
|
||||
if (stacktrace.length > 2 && stacktrace[2].getClassName().contains("EntityInsentient")) {
|
||||
return null; // Try to pickup this, dear entity ignoring the pickupDelay!
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ public class EntityCustomItem extends EntityItem implements CustomItem, BasicEnt
|
||||
public ItemStack getItemStack() {
|
||||
// Dirty method to check if the icon is being picked up
|
||||
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
|
||||
if (stacktrace.length >= 2 && stacktrace[1].getClassName().contains("EntityInsentient")) {
|
||||
if (stacktrace.length > 2 && stacktrace[2].getClassName().contains("EntityInsentient")) {
|
||||
return null; // Try to pickup this, dear entity ignoring the pickupDelay!
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class EntityCustomItem extends EntityItem implements CustomItem, BasicEnt
|
||||
public ItemStack getItemStack() {
|
||||
// Dirty method to check if the icon is being picked up
|
||||
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
|
||||
if (stacktrace.length >= 2 && stacktrace[1].getClassName().contains("EntityInsentient")) {
|
||||
if (stacktrace.length > 2 && stacktrace[2].getClassName().contains("EntityInsentient")) {
|
||||
return null; // Try to pickup this, dear entity ignoring the pickupDelay!
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user