mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-03 19:07:56 +00:00
fix npe
This commit is contained in:
@@ -228,7 +228,7 @@ public class TurtlePlaceCommand implements ITurtleCommand {
|
||||
cancelResult = hitEntity.interactAt(turtlePlayer, hitPos, Hand.MAIN_HAND);
|
||||
}
|
||||
|
||||
if (cancelResult.isAccepted()) {
|
||||
if (cancelResult != null && cancelResult.isAccepted()) {
|
||||
placed = true;
|
||||
} else {
|
||||
// See EntityPlayer.interactOn
|
||||
|
Reference in New Issue
Block a user