finish fix

This commit is contained in:
Tofaa 2024-01-22 23:07:36 +03:00
parent c08d27ec41
commit c1e0fcb717
2 changed files with 8 additions and 5 deletions

View file

@ -5,7 +5,6 @@
</component>
<component name="ChangeListManager">
<list default="true" id="9d5d9b6f-43c8-41a4-bb42-a66ffc96c9b0" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/test-plugin/src/main/java/me/tofaa/entitylib/TestCommand.java" beforeDir="false" afterPath="$PROJECT_DIR$/test-plugin/src/main/java/me/tofaa/entitylib/TestCommand.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -212,7 +211,7 @@
<workItem from="1705534524814" duration="15424000" />
<workItem from="1705578156456" duration="78000" />
<workItem from="1705636302508" duration="7111000" />
<workItem from="1705951390204" duration="2221000" />
<workItem from="1705951390204" duration="2550000" />
</task>
<servers />
</component>

View file

@ -28,15 +28,19 @@ public class TestCommand implements CommandExecutor {
return true;
}
}
base = EntityLib.createEntity(UUID.randomUUID(), EntityTypes.SHEEP);
passenger = EntityLib.createEntity(UUID.randomUUID(), EntityTypes.SKELETON);
else {
base = EntityLib.createEntity(UUID.randomUUID(), EntityTypes.SHEEP);
passenger = EntityLib.createEntity(UUID.randomUUID(), EntityTypes.SKELETON);
}
Location location = SpigotConversionUtil.fromBukkitLocation(player.getLocation());
Location pass = new Location(location.getX() + 1, location.getY(), location.getZ(), location.getYaw(), location.getPitch());
base.addViewer(player.getUniqueId());
passenger.addViewer(player.getUniqueId());
base.spawn(location);
passenger.spawn(pass);
base.addPassenger(passenger);
player.sendMessage("Spawned");
return true;