removed debug stuff

This commit is contained in:
GameHerobrine 2025-05-28 18:37:02 +03:00
parent f5c8b05a08
commit 4880be5452

View file

@ -2638,7 +2638,6 @@ class Player{
if($slot->getID() == $citem->getID() && $slot->getMetadata() == $citem->getMetadata()){
if($citem->count > $slot->count){ //item added, result
console("{$citem->count} {$slot->count}");
$this->addCraftingResult($packet->slot, $slot->getID(), $slot->getMetadata(), $citem->count - $slot->count);
}else if($citem->count < $slot->count){ //item removed, ingridient
$this->addCraftingIngridient($packet->slot, $slot->getID(), $slot->getMetadata(), $slot->count - $citem->count);
@ -2970,7 +2969,7 @@ class Player{
if(!isset($this->toCraft[$index][$slot])) $this->toCraft[$index][$slot] = 0;
$this->toCraft[$index][$slot] += $count;
console("Result: $id, $meta, $count into $slot");
//console("Result: $id, $meta, $count into $slot");
if($this->tryCraft() === false){
$this->sendInventory();
}