From f5ec65dbf7fdb40a4ace0d62f3db3906f5bd4d07 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 22 Aug 2021 19:03:22 +0800 Subject: Renaming. --- src/main/java/com/keuin/blame/EventHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/com/keuin/blame/EventHandler.java b/src/main/java/com/keuin/blame/EventHandler.java index ae67363..5209fee 100644 --- a/src/main/java/com/keuin/blame/EventHandler.java +++ b/src/main/java/com/keuin/blame/EventHandler.java @@ -48,7 +48,7 @@ public class EventHandler implements AttackEntityHandler, PlaceBlockHandler, Bre // 不检查重复,直接提交 String worldString = MinecraftUtil.worldToString(world); String blockId = Registry.BLOCK.getId(world.getBlockState(blockHitResult.getBlockPos()).getBlock()).toString(); - LogEntry entry = LogEntryFactory.playerWithBlock( + LogEntry entry = LogEntryFactory.entityWithBlock( playerEntity, worldString, blockId, @@ -88,7 +88,7 @@ public class EventHandler implements AttackEntityHandler, PlaceBlockHandler, Bre public void onPlayerBreakBlock(World world, PlayerEntity playerEntity, BlockPos blockPos, BlockState blockState, BlockEntity blockEntity) { String worldString = MinecraftUtil.worldToString(world); String blockId = Registry.BLOCK.getId(blockState.getBlock()).toString(); - LogEntry entry = LogEntryFactory.playerWithBlock( + LogEntry entry = LogEntryFactory.entityWithBlock( playerEntity, worldString, blockId, -- cgit v1.2.3