diff options
Diffstat (limited to 'Minecraft.World/BreakDoorGoal.cpp')
| -rw-r--r-- | Minecraft.World/BreakDoorGoal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/BreakDoorGoal.cpp b/Minecraft.World/BreakDoorGoal.cpp index ea00f500..f63b4eb0 100644 --- a/Minecraft.World/BreakDoorGoal.cpp +++ b/Minecraft.World/BreakDoorGoal.cpp @@ -47,7 +47,7 @@ void BreakDoorGoal::tick() breakTime++; - int progress = static_cast<int>(breakTime / (float)DOOR_BREAK_TIME * 10); + int progress = (int) (breakTime / (float) DOOR_BREAK_TIME * 10); if (progress != lastBreakProgress) { mob->level->destroyTileProgress(mob->entityId, doorX, doorY, doorZ, progress); |
