shift from uuid to EntityPlayerMP

ok maybe we shouldn't support building stuff for someone offline yet
This commit is contained in:
Glease committed 2022-07-09 03:09:19 +08:00
1 parent 4a7051ab63
commit 5e66f6b8aa
12 files changed
+98 -103

No files matched your search

@@ -1,9 +1,9 @@
package com.gtnewhorizon.structurelib.structure;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import java.util.UUID;
import java.util.function.Function;
class LazyStructureElement<T> implements IStructureElementDeferred<T> {
@@ -38,7 +38,7 @@ class LazyStructureElement<T> implements IStructureElementDeferred<T> {
}
@Override
public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, IItemSource s, UUID actorProfile) {
return get(t).survivalPlaceBlock(t, world, x, y, z, trigger, s, actorProfile);
public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, IItemSource s, EntityPlayerMP actor) {
return get(t).survivalPlaceBlock(t, world, x, y, z, trigger, s, actor);
}
}