mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-29 03:48:43 +01:00
parent
c6320cb141
commit
e9b7eee57b
@ -284,6 +284,10 @@ public class StackingTask extends BukkitRunnable {
|
|||||||
// Make the friend the new stack host.
|
// Make the friend the new stack host.
|
||||||
EntityStack newStack = stackManager.updateStack(livingEntity, entity);
|
EntityStack newStack = stackManager.updateStack(livingEntity, entity);
|
||||||
|
|
||||||
|
if (newStack == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Add our entity to that stack
|
// Add our entity to that stack
|
||||||
plugin.getDataManager().createStackedEntity(newStack, newStack.addEntityToStack(livingEntity));
|
plugin.getDataManager().createStackedEntity(newStack, newStack.addEntityToStack(livingEntity));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user