Skip to content

Commit

Permalink
1.20.6 progress
Browse files Browse the repository at this point in the history
  • Loading branch information
CubBossa committed May 29, 2024
1 parent f74222c commit 4b4e478
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pathfinder-bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies {
testImplementation("com.mojang:brigadier:1.0.18")

// Commands
api("dev.jorel:commandapi-bukkit-shade:9.4.1")
api("dev.jorel:commandapi-bukkit-shade:9.4.2")

// Statistics
implementation("org.bstats:bstats-bukkit:3.0.1")
Expand Down
2 changes: 1 addition & 1 deletion pathfinder-editmode/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies {
implementation("xyz.xenondevs:particle:1.8.4")

// Client ArmorStands
implementation("de.cubbossa:ClientEntities:1.3.0")
implementation("de.cubbossa:ClientEntities:1.3.2")
implementation("com.github.retrooper.packetevents:spigot:2.3.1-SNAPSHOT")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public NamespacedKey getKey() {
@Override
public void onLoad(PathFinder pathPlugin) {
if (pathPlugin instanceof BukkitPathFinder bukkitPathFinder) {
de.cubbossa.cliententities.lib.packetevents.api.PacketEvents.setAPI(de.cubbossa.cliententities.lib.packetevents.impl.factory.spigot.SpigotPacketEventsBuilder
.build(bukkitPathFinder.getJavaPlugin()));
PacketEvents.setAPI(SpigotPacketEventsBuilder.build(bukkitPathFinder.getJavaPlugin()));
PacketEvents.getAPI().getSettings()
.checkForUpdates(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void showElement(T element, Player player) {

protected PlayerSpace ps(Player player) {
return playerSpaces.computeIfAbsent(player.getUniqueId(), uuid -> {
PlayerSpace playerSpace = PlayerSpace.builder().withPlayer(uuid).build();
PlayerSpace playerSpace = PlayerSpace.create().withPlayer(uuid).build();
playerSpace.registerListener(PlayerInteractEntityEvent.class, this::onClick);
playerSpace.registerListener(EntityDamageByEntityEvent.class, this::onHit);
return playerSpace;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public abstract class AbstractEntityRenderer<ElementT, DisplayT extends Display>

public AbstractEntityRenderer(JavaPlugin plugin, Class<DisplayT> displayClass) {
this.entityClass = displayClass;
this.playerSpace = PlayerSpace.builder().withEventSupport().build();
this.playerSpace = PlayerSpace.create().withEventSupport().build();

entityNodeMap = Maps.synchronizedBiMap(HashBiMap.create());
interactionNodeMap = Maps.synchronizedBiMap(HashBiMap.create());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private static final class Context {
private final Map<UUID, NodeContext> displayed;

public Context(UUID player) {
playerSpace = PlayerSpace.builder().withPlayer(player).build();
playerSpace = PlayerSpace.create().withPlayer(player).build();
rendered = new HashSet<>();
displayed = new ConcurrentHashMap<>();
}
Expand Down

0 comments on commit 4b4e478

Please sign in to comment.