mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-30 09:07:55 +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);
|
cancelResult = hitEntity.interactAt(turtlePlayer, hitPos, Hand.MAIN_HAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cancelResult.isAccepted()) {
|
if (cancelResult != null && cancelResult.isAccepted()) {
|
||||||
placed = true;
|
placed = true;
|
||||||
} else {
|
} else {
|
||||||
// See EntityPlayer.interactOn
|
// See EntityPlayer.interactOn
|
||||||
|
Reference in New Issue
Block a user